﻿namespace Magic.System;

public interface ISysRoleService
{
    Task<string> GetPermissionsByIds(List<int> ids);
    Task<List<SysRoleTreeOutput>> GetTree(SysRolePageInput input);
    /// <summary>
    /// 分页返回分组
    /// </summary>
    /// <returns></returns>
    Task<dynamic> GetPageList(SysRolePageInput input);
    /// <summary>
    /// 根据Id返回
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<SysRoleDetailOutput> Get(int id);
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Add(AddSysRoleInput input);
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="ids"></param>
    /// <returns></returns>
    Task Delete(List<int> ids);
    /// <summary>
    /// 编辑
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Edit(EditSysRoleInput input);
}
